package domain

import (
	"cs0512/fmr/internal/apiserver/domain/user"
	"cs0512/fmr/internal/apiserver/store"
)

type Service interface {
	User() user.UserSrv
}

type service struct {
	store store.Factory
}

var _ Service = (*service)(nil)

func NewService(store store.Factory) *service {
	return &service{
		store: store,
	}
}

func (s *service) User() user.UserSrv {
	return user.New(s.store)
}
